<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
<head>
		<title></title>
		<style type="text/css">
		#e{
		
			height:40px;
			margin-top: 20px;
		}
		</style>
		<!--适配于手机终端和PAD等移动终端，禁止缩放-->
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta charset="UTF-8" />
		<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	</head>

<body>
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<ul class="nav nav-tabs">
				<li>
					 <a href="${pageContext.request.contextPath}/dept_findAll.action">部门表</a>
				</li>
				<li class="active">
					 <a href="${pageContext.request.contextPath}/queryfind.action">员工表 </a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/contract_find_findByFirstPage.action">部门合同</a>

				</li>
				<li>
					  <a href="${pageContext.request.contextPath}/Human_Resource_find_findAll.action">人才资源管理</a>
				</li>
				<li>
					  <a href="${pageContext.request.contextPath}/transfer_find_findAll.action">人员调动管理</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/eva_findAll.action">员工绩效评估</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/hrmr_find_findHRReport.action">HR月报</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/leave_findAll.action">考勤</a>
				</li>
				<li >
					 <a href="${pageContext.request.contextPath}/find.advise">招聘表</a>
				</li>
				
				
				
			</ul>
			
			<img src = "${pageContext.request.contextPath }/mmy/img/main.jpg" >
			<!-- <div class="jumbotron" id = "d1"></div> -->
			<div class="col-md-4 column">
		</div>
		<div class="col-md-4 column">
			<form class="form-horizontal" role="form" action="${pageContext.request.contextPath }/eifindById.action" method="get">
			
				<div class="form-group">
					
					<div class="col-sm-10">
						查找员工的详细资料<input type="text" class="form-control" id="inputEmail3" name="empno" />
					</div>
				</div>
			
			
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						 <button type="submit" class="btn btn-default">查阅</button>
					</div>
				</div>
			</form>
		</div>
		<div class="col-md-4 column">
		</div>
			<table class="table">
			
				<thead>
					<tr>
						<th>
							员工编号
						</th>
						<th>
							员工姓名
						</th>
						<th>
							员工薪资
						</th>
						<th>
							员工性别
						</th>
						<th>
							员工职位
						</th>
						<th>
							员工部门编号
						</th>
						<th>
							工作状态
						</th>
						<th>
							操作员工
						</th>
					</tr>
				</thead>
				
			
				<tbody>
				<c:forEach items="${emps}" var="st"><!-- 循环选项 --> 
									
					<tr>
						<td>
							${st.empno }
						</td>
						<td>
							${st.name }
							
						</td>
						<td>
							${st.sal }
							
						</td>
						<td>
						${st.sex }
							
						</td>
						<td>
						${st.rank }
							
						</td>
						<td>
						${st.intro }
							
						</td>
						<td>
						${st.status }
							
						</td>
						<td><!-- 员工操作栏 -->
						<a href="findById_emp.action?empno=${st.empno }">修改</a>
						<a href="deletet_emp.action?t_emp.empno=${st.empno }">删除</a>
						<!-- /mmy/updatepro.jsp -->
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			
			
			<ul class="pagination"> <!-- 分页  -->
			<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=1">首页</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=${page-1 }">上一页</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=1">1</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=2">2</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=3">3</a>
				</li>
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=${page+1 }">下一页</a>
				</li>
				
				<li>
					 <a href="${pageContext.request.contextPath}/queryfindpage.action?page=9">尾页</a>
				</li>
			</ul>
		</div>
	</div>
	<!-- 添加页面 -->
	<div class="row clearfix">
		<div class="col-md-4 column">
		</div>
		<div class="col-md-4 column">
		</div>
		<div class="col-md-4 column">
			 <button type="button" class="btn btn-default btn-block" onclick="location.href='${pageContext.request.contextPath}/mmy/addpro.jsp'">添加员工</button>
			<br/>
			<a class="btn btn-default btn-block" href="${pageContext.request.contextPath }/queryEP.action">员工薪资分组查询报表</a> 
		</div>
	</div>
</div>

<script>
	


</script>

</body>
</html>